Skip to content

fix: migrate from RoktStripePaymentExtension to unified RoktPaymentExtension#85

Closed
rmi22186 wants to merge 6 commits into
shoppable-adsfrom
fix/update-payment-extension
Closed

fix: migrate from RoktStripePaymentExtension to unified RoktPaymentExtension#85
rmi22186 wants to merge 6 commits into
shoppable-adsfrom
fix/update-payment-extension

Conversation

@rmi22186

@rmi22186 rmi22186 commented Apr 21, 2026

Copy link
Copy Markdown
Member

Summary

Renames the payment extension plugin from @mparticle/cordova-rokt-payment-extension-kit to
@mparticle/cordova-rokt-payment-extension (drops -kit since it's a Rokt SDK extension, not an mParticle kit) and updates the README to show both cordova plugin add and config.xml install styles. Code-complete but cannot be built end-to-end against published pods — see blockers below.

Upstream blockers

  • mParticle-Apple-SDK — podspecs (umbrella, -ObjC, mParticle-Rokt) still declare RoktContracts ~> 0.1; must bump to ~> 1.0 and publish (9.0.2). CI failure demonstrates the resulting pod-resolution conflict against RoktPaymentExtension 1.0+.
  • Rokt-Widget 5.0.0PaymentOrchestrator.swift:97 calls presentPaymentSheet(...) without the context: PaymentContext parameter that RoktContracts 1.0 requires; needs a 5.0.1 with that call site updated. (Not visible in CI — only surfaces after blocker above is resolved.)

rmi22186 and others added 4 commits April 17, 2026 11:15
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…Extension

Migrate from per-provider payment extension (RoktStripePaymentExtension)
to unified payment extension (RoktPaymentExtension) that supports all
payment providers (Stripe, AfterPay, PayPal) in a single package.

- Kits/RoktStripePayment → Kits/RoktPaymentExtension
- @mparticle/cordova-rokt-stripe-payment-kit → @mparticle/cordova-rokt-payment-extension-kit
- Pod: RoktStripePaymentExtension → RoktPaymentExtension
- Update RoktPaymentSetup.swift bridging class
- Update example config.xml, hook comment, and README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
RoktPaymentExtension 1.0.0 has been published to CocoaPods.

Note: requires mParticle-Apple-SDK to update its RoktContracts dependency
from ~> 0.1 to ~> 1.0 before pod resolution will succeed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rmi22186
rmi22186 requested a review from a team as a code owner April 21, 2026 14:13
@cursor

cursor Bot commented Apr 21, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Renames the payment extension plugin/package and swaps the iOS CocoaPods dependency to RoktPaymentExtension ~> 1.0, which may impact existing installs and upstream compatibility at build time.

Overview
Migrates the Cordova Shoppable Ads payment integration from the Stripe-specific RoktStripePaymentExtension to the unified RoktPaymentExtension.

This renames the plugin/package identifiers and updates iOS pod wiring in Kits/RoktPaymentExtension/plugin.xml, refreshes the Swift registration helper (RoktPaymentSetup.swift), and adjusts the README + example app configs to reference the new plugin and installation steps.

Reviewed by Cursor Bugbot for commit bde7829. Bugbot is set up for automated code reviews on this repo. Configure here.

Drop the "-kit" suffix since the payment extension is a Rokt SDK
extension, not an mParticle kit. Update package id, plugin id, config
references, lockfile, and README snippet.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 13438a9. Configure here.

Comment thread Kits/RoktPaymentExtension/package.json
…sion

Add `cordova plugin add` commands alongside the `config.xml` snippets so
users can pick either install style.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rmi22186

Copy link
Copy Markdown
Member Author

closing as this is resolved in #93 now due to drift in versions since this PR was opened over a month ago.

@rmi22186 rmi22186 closed this May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant